package homework;

public class Person{
	private String name;
	private String goodsName;
	private int goodsPrice;
	
	public Person() {
		super();
	}

	public Person(String name, String goodsName, int goodsPrice) {
		super();
		this.name = name;
		this.goodsName = goodsName;
		this.goodsPrice = goodsPrice;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public int getGoodsPrice() {
		return goodsPrice;
	}

	public void setGoodsPrice(int goodsPrice) {
		this.goodsPrice = goodsPrice;
	}

	@Override
	public String toString() {
		return "Person [name=" + name + ", goodsName=" + goodsName + ", goodsPrice=" + goodsPrice + "]";
	}
}
